package me.zk.practice1.hw;

import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class HWBJ04 {
    //组成最大的数字,排序输入的字符数字
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        String[] strs = s.split(",");
        Arrays.sort(strs, Comparator.reverseOrder());
        System.out.println(String.join("",strs));

    }
}
